package com.blue.base.demo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * 小程序code2Session接口返回值原生属性
 *
 * @author liulei
 * @version 2.0
 */
@Data
@ApiModel("微信session信息")
@Accessors(chain = true)
public class WxSessionVo {
    @ApiModelProperty("用户唯一标识")
    private String openid;
    @ApiModelProperty("会话密钥")
    private String session_key;
    @ApiModelProperty("用户在开放平台的唯一标识符，若当前小程序已绑定到微信开放平台帐号下会返回")
    private String unionid;
    @ApiModelProperty("错误码")
    private Integer errcode;
    @ApiModelProperty("错误信息")
    private String errmsg;

    @ApiModelProperty("自定义sessionID")
    private String sessionId;
}
